package com.feign.api.consumer;


import com.feign.api.consumer.factory.RemoteConsumeFallbackFactory;
import com.feign.core.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(contextId = "remoteConsumerService", value = "consumer-module", fallbackFactory = RemoteConsumeFallbackFactory.class)
public interface RemoteConsumerService {

    @GetMapping(value = "/message/handle")
    AjaxResult getConsumeMessage();

    @PostMapping(value = "/message/commit")
    AjaxResult consumeMessagePost();

}
